added refinement/specifics tests, fixed small bugs