added tests for everything except the onClick