Default sort field changeable. Fixed tests breaking database.