Added tests for ChainedSpecification and QueryBuilderSpecification.