added test files and some basic controller logic