Lab test could help develop easy to swallow medicines