New tests

1. Several new tests.
2. Fixed not passing yesterday test (with casting to double)