Added tests for the get method.
Implemented get method.