Tests with custom key