fixed various issues with tests
version 0.12.2.0