Write spec

write spec and add fixtures.