fixed test cases for Firebird - #312