get and test data from controller