Added input tests and stress tests