fix tests to accept integer id