added tests for invalid method signatures and fixed bug where it incorrectly passed