Added a query method to the repository manager

Added i18n of methods in Precondition. Added tests for query and moved some tests from deriver test into repository manager test.