implementing a test controller