generating controllers now works
also added tests