added more tests and logic to processor