[#516]Adds tests and disables serialization feature FAIL_ON_EMPTY_BEANS