Created rudimental test and implementation for controller which is able to assign view variables