added factory_girl and models tests

Signed-off-by: Alex Izotov <martinandrudy@gmail.com>