Add tests for custom score queries

References #27