Implemented unit tests.

Basic test case created for view and model.