test tidy up
prep for browser
add spec