added unit testing to main source
deleted old test stuff