Added tests.

Added tests for base models's methods.