fixed bug in create_biases, added regression test