Hello!
Currently only different primary queries can use different indexes, nested derived tables and subqueries can also use own indexes.
SELECT * FROM TEST WHERE NAME = 'A' AND FIRSTNAME = 'B' can use only one index and it needs an index on (NAME, FIRSTNAME, …) or on (FIRSTNAME, NAME, …) columns for optimal performance.
H2 doesn't have a bitmap index scan optimization, so if you have only separate indexes, only one index will be used. Some database systems can use two indexes on the same time in such queries, but even in them a two-column index should be significantly faster than bitmap index scan optimization on two indexes.