refactor state test
cleanup
moved back sale type