Made models PHP strict and pass the tests