added nulldb adapter for testing active-record without db
fixed method call
stubbing
applied nulldb