add factories, simple spec tests for models