add spec testing
add spec tests for Photo