made a quick test function, moved tests there